package pub.zhouhui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by shane on 17-1-7.
 */
@RestController
@RequestMapping(value = {"/test", "/"})
public class Hello {

    @RequestMapping(value = "getHello", method = RequestMethod.GET)
    public String returnHello() {
        return "Hello,World!";
    }
}
